<?php

use yii\db\Schema;
use yii\db\Migration;

class m160121_105430_update_condition_type extends Migration
{
    public function up()
    {
        $sql = <<<FINE
    update {{%condition_type}} set table_name = 'condition_schedule' where table_name = 'condition_mobile_schedule';
FINE;
        $this->execute($sql);
    }

    public function down()
    {
        return true;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
